/**
 * lhj
 */

import chalk from "chalk"
import input from 'inquirer'
import shelljs from 'shelljs'

export default class KillChain{

    public async start() {
        console.log(chalk.yellow('1.主机渗透\n2.WEB渗透(暂不支持)\n3.无线渗透'))
        const res = await input.prompt({
            type: 'input',
            message: '请选择：',
            name: 'value'
        })
        if (res['value'] === '1') this.hostExploit()
    }

    private async hostExploit() {
        console.log(chalk.green('第一步：主机扫描...'))
        console.log(chalk.yellow('1.Nmap 扫描\n2.载入已有 Nmap 扫描结果(暂不支持)'))
        const res1 = await input.prompt({
            type: 'input',
            message: '请选择',
            name: 'value'
        })
        if (res1['value'] === '1') {
            this.nmap()
        } 
    }

    public async nmap () {

    }
}